Skip to main content

Get Channels

AutomatR.MicrosoftTeams.Activities.GetChannels

The "Get Channels" activity in AutomatR for Microsoft Teams retrieves a collection of channels associated with a specified Microsoft Teams team. This activity is beneficial for efficiently managing and accessing channels within Teams, streamlining collaboration and automation workflows.

NOTE: Guest users can't see private or shared channels that they aren't members of in the response.

Properties

NameDescription
Input
Team IDSpecifies the Team ID for which channels are to be retrieved. String variables containing the Team ID.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Channels" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs a Microsoft.Graph.ITeamChannelsCollectionPage object, representing a collection page for accessing team channels in Microsoft Teams. This collection page includes information about the channels associated with the specified team, such as channel names, IDs, and other relevant details.

How to use:

  1. Drag and drop the "Get Channels" activity onto the workflow.
  2. Configure the properties by specifying the Team ID for which you want to retrieve channels.
  3. Optionally, configure the delay.
  4. Execute the workflow to retrieve a collection of channels associated with the specified Microsoft Teams team.

Example: Consider an example where the "Get Channels" activity is used to retrieve channels for a Teams team with the Team ID "team123":

Get Channels:
Team ID: "team123"
Delay: 1
Result: teamChannels

In this example, the activity retrieves a collection of channels associated with the Teams team with the Team ID "team123". The resulting teamChannels object contains information about the channels, enabling further processing within the workflow.